package com.ruoyi.car.mapstruct;

import com.ruoyi.car.controller.admin.carBsRegulations.vo.CarBsRegulationsAddReq;
import com.ruoyi.car.controller.admin.carBsRegulations.vo.CarBsRegulationsEditReq;
import com.ruoyi.car.controller.admin.carBsRegulations.vo.CarBsRegulationsResp;
import com.ruoyi.car.controller.admin.model.vo.CarModelAddReq;
import com.ruoyi.car.controller.admin.model.vo.CarModelEditReq;
import com.ruoyi.car.controller.admin.model.vo.CarModelResp;
import com.ruoyi.car.entity.CarBsRegulations;
import com.ruoyi.car.entity.CarModel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author：流冬
 * @Package：com.ruoyi.car.mapstruct
 * @Project：RuoYi-Vue
 * @name：CarBsRegulationsTo
 * @Date：2023/6/5 21:20
 * @Filename：CarBsRegulationsTo
 * @Description
 */
@Mapper
public interface CarBsRegulationsTo {
    CarBsRegulationsTo INSTANCE= Mappers.getMapper(CarBsRegulationsTo.class);


    /**
     * 把List<CarModel> 转换为  List<CarModelResp>
     * @param list
     * @return
     */
    List<CarBsRegulationsResp> convert(List<CarBsRegulations> list);

    /**
     * CarModelAddReq转换成实体类CarModel
     * @param req
     * @return
     */
    CarBsRegulations convert(CarBsRegulationsAddReq req);

    /**
     * 转换
     * @param bean
     * @return
     */
    CarBsRegulationsResp convert(CarBsRegulations bean);

    CarBsRegulations  convert(CarBsRegulationsEditReq req);
}
